<script setup>
import WarehouseView from './warehouse.vue'
import WarehouseAreaView from './warehouseArea.vue'
import WarehouseAreaLocalView from './warehouseAreaLocal.vue'
</script>
<template>
  <el-tabs height="80px" type="border-card" class="demo-tabs" stretch>
    <el-tab-pane>
      <template #label>
        <div class="custom-tab-content">
          <el-icon size="32px" class="tab-icon">
            <House />
          </el-icon>
          <span>仓库设置</span>
        </div>
      </template>
      <div>
        <WarehouseView />
      </div>
    </el-tab-pane>
    <el-tab-pane>
      <template #label>
        <div class="custom-tab-content">
          <el-icon size="32px" class="tab-icon">
            <Grid />
          </el-icon>
          <span>库区设置</span>
        </div>
      </template>
      <div>
        <WarehouseAreaView />
      </div>
    </el-tab-pane>
    <el-tab-pane>
      <template #label>
        <div class="custom-tab-content">
          <el-icon size="32px" class="tab-icon">
            <Tickets />
          </el-icon>
          <span>库位设置</span>
        </div>
      </template>
      <div>
        <WarehouseAreaLocalView />
      </div>
    </el-tab-pane>
  </el-tabs>
</template>

<style>
.el-tabs--border-card .el-tabs__nav-scroll {
  height: 80px !important;
}

.el-tabs--border-card .el-tabs__item {
  height: 80px !important;
  min-height: 80px !important;
  padding: 8px 0 !important;
  line-height: normal !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

.custom-tab-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 4px 0;
}

.custom-tab-content .tab-icon {
  margin-bottom: 6px;
  width: 30px;
  height: 30px;
}

.custom-tab-content span {
  font-size: 18px;
  line-height: 1.2;
  text-align: center;
  padding: 0 4px;
}
</style>